# coding = utf-8
from scrapy.selector import Selector
from scrapy.http import HtmlResponse

with open("xicipage1.html", 'rb') as f:
    response = f.read()

response = Selector(text=response, type="html")

print response
listip = response.css('table#ip_list')[0].css('tr.odd')
for ip in listip:
    print ip
    items = ip.css('td')
    print(len(items))
    print items[3].css('a::text').extract()

    print ("************************")
    print items
    items = ip.css('td::text').extract()
    print items
    ip = items[0]
    port = items[1]
    anonymouse = items[4]
    type = items[5]
    speed = items[10]
    Finalverificationtime = items[11]
    break

print listip